package com.joysuch.wwyt.api.mh.dto;

import com.joysuch.wwyt.api.mh.entity.MonitorPointAPIData;
import com.joysuch.wwyt.core.enums.Status;
import lombok.Data;
import org.apache.poi.ss.formula.functions.T;

import java.io.Serializable;
import java.util.List;

@Data
public class MhMonitPointPushResponseDto implements Serializable {

    private Integer code;

    private String message;

    private T data;

    public  MhMonitPointPushResponseDto(Integer code, String message, T data){
        this.code = code;
        this.message = message;
        this.data = data;
    }

    public MhMonitPointPushResponseDto(Integer code, String message){
        this.code = code;
        this.message = message;
        this.data = null;
    }
    public MhMonitPointPushResponseDto(Status status){
        this.code = status.getCode();
        this.message = status.getMsg();
        this.data = null;
    }

}
